package com.pj.app.auraSimulator;

import java.util.ArrayList;

public class SimulatorTasks extends ArrayList<ArrayList<AbstractSimulatorTask>>{
	
	public SimulatorTasks() {
		super();
	}
	public SimulatorTasks(int size) {
		super(size);
		for(int i = 0; i <size; i++) {
			this.add(new ArrayList<AbstractSimulatorTask>());
		}
	}
	
	
	public void add(int index, AbstractSimulatorTask element) {
		
		if(this.get(index) != null) {
			this.get(index).add(element);
		}
	}



	public class ChangeLocalizationTask extends AbstractSimulatorTask{
		private double[] loc;
		public ChangeLocalizationTask(int userId, int localId, double[] loc) {
			super(userId, localId);
			this.loc = loc;
		}
		public double[] getLoc(){
			return loc;
		}
	}
	public class CreateOrDisableAuraTask extends AbstractSimulatorTask {
		public static final int CREATE_AURA = 1;
		public static final int DISABLE_AURA = 2;
		private int type;
		private String auraType;
		public CreateOrDisableAuraTask(int userId, int localId, int type, String auraType) {
			super(userId, localId);
			this.type = type;
			this.auraType = auraType;
			
		}
		public int getType() {
			return this.type;
		}
		public String getAuraType() {
			return this.auraType;
		}
		
	}
}
